Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix вывода данных о сертификатах #3067

Merged
merged 4 commits into from
Sep 11, 2023
Merged

Conversation

Wellheor1
Copy link
Collaborator

Описание изменений

  • fix

}
}
return result;
return `${obj.SN} ${obj.G} ${obj.SNILS} ${obj.T ? obj.T : ''}`;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше примерно так (но стоит проверить)
Что бы не было лишних пробелов и исключить случаи с другими пустыми значениями

Suggested change
return `${obj.SN} ${obj.G} ${obj.SNILS} ${obj.T ? obj.T : ''}`;
return [obj.SN, obj.G, obj.SNILS, obj.T].filter(Boolean).join(' ');

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return [obj.SN, obj.G, obj.SNILS, ${obj.T ? obj.T : ''}].filter(Boolean).join(' ');

T - не всегда присутствует

@urchinpro urchinpro merged commit 5776257 into develop Sep 11, 2023
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix_eds branch September 11, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants